class ex_5_8_1{
	public void sub(){
		System.out.println("-- no argument --");
		System.out.println("welcome to JAVA!");
		System.out.println("JAVA is very fun! \n");
		
	}
	public void sub(int a, int b){
		System.out.println("-- argument & no return  --");
		//int c;
		System.out.println(a + " + " + b + " = " + (a+b));
		
	}
	public float sub(float a, float b){
		System.out.println("-- argument & return  --");
		//int c;
		System.out.println(a + " + " + b + " = " + (a+b));
		return a+b;
		
	}
}
class ex_5_8{
	public static void main(String[] args){
		int x,y;
		float c,d,w,z;
		
		System.out.println("---- method overloading ----");
		System.out.println("welcome to JAVA!");
		System.out.println("JAVA is very fun! \n");
		System.out.println("\n\n");
		
		ex_5_8_1 test = new ex_5_8_1();
		test.sub();
		
		
		x=30;
		y=60;
		test.sub(x,y);
		c= 31.6f;
		d= 12.8f;
		w=test.sub(c,d);
		z=w/3;
		System.out.println("sub3(x,y) = " + w + ", z = " + z);
		
	}
	
}